package br.ufrgs.meetapp.location;

import android.content.Context;
import android.location.LocationManager;

public class LocationBasedServices {

	/**
	 * Checks whether we have location services enabled in settings
	 * @param context - activity context
	 * @return true if the location services are set to on in the settings and else otherwise
	 */
	public static boolean isGpsEnabled(Context context) {
		LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
		return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
	}
	
}
